# helm repo add ks-main https://charts.kubesphere.io/main

export namespace="kube-system"
export repo="appstore"
export app_name="nfs-subdir-external-provisioner"
export helm="$repo/$app_name"
# export url="https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/"

# export repo="ks-main"
# export app_name="nfs-client-provisioner"
# export url="https://charts.kubesphere.io/main"

export server="10.11.130.170"
export path="/data/demo"

# helm repo remove $repo
# helm repo add $repo $url
helm repo update $repo

# helm search repo dapr --devel --versions

helm upgrade --create-namespace --install \
    -n $namespace $app_name $helm \
    --set image.repository="k8s-gcr.m.daocloud.io/sig-storage/nfs-subdir-external-provisioner" \
    --set storageClass.defaultClass=true \
    --set nfs.server=$server \
    --set nfs.path=$path
